﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Index.aspx.cs" Inherits="Enterprise.UI.Web.Modules.CaiWuBu.Index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
    <script language="javascript" type="text/javascript" src="/Manage/Common/js/lhgdialog/lhgdialog.min.js?skin=discuz"></script>
    <script type="text/javascript">
        //第二种普通函数式调用
        function opdg(stitle, surl) {
            $.dialog({ content: 'url:' + surl, cancelBtn: false, title: stitle, width: 700, height: 400, lock: true });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="vDaohangtiaoHolder module">
        <div class="vDaohangtiao">
            <ul>
                <li class="first">
                    <a href="/index.aspx" title="首页">首页</a>
                </li>
                <li class="last">财务信息
                </li>
            </ul>
        </div>
    </div>
    <Ent:HeadMenuWeb ID="HeadMenu1" runat="server">
    </Ent:HeadMenuWeb>
    <div>
        年度：<asp:DropDownList ID="ddl_ny" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_ny_SelectedIndexChanged">
        </asp:DropDownList>
        单位：<asp:DropDownList ID="ddl_dwmc" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_dwmc_SelectedIndexChanged">
            <asp:ListItem>SZK</asp:ListItem>
            <asp:ListItem>PPC</asp:ListItem>
            <asp:ListItem>SPC</asp:ListItem>
        </asp:DropDownList>
    </div>
    <div style="padding: 5px;">
        <div style="font-size: 14px; font-weight: bold; padding: 10px; text-align: center;">
            Оценка работы дочерних предприятий за <%=year %> год / 子公司<%=year %>年内部考核评分表
        </div>
        <div style="text-align: right; padding-right: 120px;">Название предприятия /公司名称：<%=dw %>
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ZBID"
            Width="100%">
            <Columns>
                <asp:TemplateField HeaderText="指标类别/Категория показателей" ItemStyle-HorizontalAlign="Left"
                    ItemStyle-Width="160">
                    <ItemTemplate>
                        <asp:Literal ID="literal1" runat="server" Text='<%#Enterprise.Service.Caiwubu.CwTypeService.GetTypeName((int)Eval("ZBTYPEID")) %>'></asp:Literal>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="指标名称/Оцениваемые показатели" ItemStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <%#Eval("ZBCODE") %> <%#Eval("ZBNAME") %>/<%#Eval("ZBNAMERU") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="单位/Ед.изм">
                    <ItemTemplate>
                        <%#Eval("ZBUNIT") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="计划完成数">
                    <ItemTemplate>
                        <%#Enterprise.Service.Caiwubu.CwZbkhService.GetZbkhValue((int)Eval("ZBID"),year,0,dw)%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="实际完成数">
                    <ItemTemplate>
                      <a href="#" onclick="opdg('指标名称：<%#Eval("ZBNAME") %>','/Modules/CaiWuBu/Chart.aspx?zbid=<%#Eval("ZBID") %>&year=<%=year %>&dw=<%=dw %>')">  <%#Enterprise.Service.Caiwubu.CwZbkhService.GetZbkhSumValue((int)Eval("ZBID"),year,dw) %></a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>

        </asp:GridView>
    </div>
</asp:Content>
